package org.smart4j.chapter1.threadlocal;

/**
 * @ClassName:
 * @Description: 线程类
 * @Author: LynnZou
 * @Date: 2017/5/31
 */
public class ClientThread extends Thread {

    private Sequence sequence;

    public ClientThread(Sequence sequence){
        this.sequence = sequence;
    }

    @Override
    public void run() {
        for(int i=0;i<3;i++){
            System.out.println(Thread.currentThread().getName() + "==>" + sequence.getNumber());
        }
    }
}
